package TextBookCode.unit2.unit2_3;


import java.util.Observable;
import java.util.Observer;

public class JingDongObserver implements Observer {


    public void update(Observable o, Object product) {
        String newProduct = (String)product;
        System.err.println("发送新产品【" + newProduct + "】同步到京东商城");
    }
}
